import api from '../index.js';

export const patientSelector = (data) => api.post('/api/Reservation/patientSelector', data);

export const medTypeSelector = (data) => api.get('/api/treated/medTypeSelector', data);

export const allergicTypeSelector = (data) => api.post('/api/reservation/allergicTypeSelector', data);

export const tagSelector = (data) => api.post('/api/patient/tagSelector', data);

export const queryConfig = (data) => api.get('/api/caseConfig/config', data);

export const restoreDefault = (data) => api.get('/api/caseConfig/restoreDefault', data);

export const queryTemplate = (data) => api.post('/api/template/page', data);

export const drugSelectore = (data) => api.post('/api/pharmacy/drugSelector', data);

export const addTemplate = (data) => api.post('/api/treated/addTemplate', data);

export const pricing = (data) => api.post('/api/treated/pricing', data); // 划价

export const dosformSelector = (data) => api.get('/api/treated/dosformSelector', data); // 剂型选择

export const unitFrquSelector = (data) => api.get('/api/treated/unitFrquSelector', data); // 单位选择

export const usedFrquSelector = (data) => api.get('/api/treated/usedFrquSelector', data); // 频率选择

export const usageSelector = (data) => api.get('/api/treated/usageSelector', data); // 用法选择

export const modulationmethodSelector = (data) => api.get('/api/treated/modulationmethodSelector', data); // 调法选择

export const ftusageaskSelector = (data) => api.get('/api/treated/ftusageaskSelector', data); // 敷贴用法选择

export const zyusageaskSelector = (data) => api.get('/api/treated/zyusageaskSelector', data); // 用法选择

export const surchargesSelector = (data) => api.get('/api/treated/surchargesSelector', data); // 附加

export const placeAnOrder = (data) => api.post('/api/treated/placeAnOrder', data); // 下单

export const therapySelector = (data) => api.post('/api/treated/therapySelector', data); // 

export const diseaseNameSelector = (data) => api.get('/api/treated/diseaseNameSelector', data); // 诊断

export const getListByType = (data) => api.get('/api/caseOption/getListByType', data); // 通过 Category查询数据 type 1主诉2现病3既往4过敏5标签6望闻问切

export const queryHCPage = (data) => api.post('/api/treated/hCPage', data); // 分页查询历史病例

export const settlement = (data) => api.post('/api/treated/settlement', data); //结算 收费发药

export const specialtreatmentSelector = (data) => api.get('/api/treated/specialtreatmentSelector', data); // 诊断

export const detailsTemplate = (data) => api.post('/api/treated/detailsTemplate', data); //模板明细

export const saveTreated = (data) => api.post('/api/treated/save', data); //模板明细

export const hCDetails = (data) => api.post('/api/treated/hCDetails', data); //查询历史病例明细

export const initialization = (data) => api.post('/api/treated/initialization', data); //查询历史病例明细

export const reservationPage = (data) => api.post('/api/treated/reservationPage', data); //查询历史病例明细
































